package com.szw;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.Transaction;

public class TestPing {
    public static void main(String[] args) {
        //1、new jedis
        Jedis jedis = new Jedis("192.168.96.133",6379);
        //jedis 对象中包含所有redis的指令
        System.out.println(jedis.ping());
        Transaction multi = jedis.multi();
        jedis.close();
        System.out.println("      ");

    }
}
